﻿using GameFramework;

namespace GFTest
{
    public sealed class PLogData : IReference
    {
        public Programmer m_Programmer = default(Programmer);
        public object m_Message = default(object);

        public Programmer Programmer
        {
            get
            {
                return m_Programmer;
            }
        }

        public object Message
        {
            get
            {
                return m_Message;
            }
        }

        public void Clear()
        {
            m_Programmer = default(Programmer);
            m_Message = default(object);
        }

        public PLogData Fill(Programmer programmer, object message)
        {
            m_Programmer = programmer;
            m_Message = message;

            return this;
        }

        public override string ToString()
        {
            return string.Format("[{0}] {1}", m_Programmer.ToString(), m_Message);
        }
    }
}
